package cn.yinyu.queue.module.ecg.controller.admin.queue.vo;

import cn.yinyu.queue.module.ecg.dal.dataobject.patient.PatDetails;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.yinyu.queue.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Map;

import static cn.yinyu.queue.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 排队分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class QueuePageReqVO extends PageParam {

    @Schema(description = "预约申请号", example = "2024435")
    private String applyNo;

    @Schema(description = "就诊流水号", example = "2024435")
    private String episodeId;

    @Schema(description = "患者编号", example = "30473")
    private String patId;

    @Schema(description = "患者姓名", example = "嘉木")
    private String patName;

    @Schema(description = "患者性别")
    private Boolean patGender;

    @Schema(description = "患者详情")
    private PatDetails patDetails;

    @Schema(description = "预约日期")
    private LocalDate bookDate;

    @Schema(description = "预约时间段")
    private Integer bookTimeslot;

    @Schema(description = "预约检查类型", example = "1")
    private Integer bookCheckType;

    @Schema(description = "预约序号")
    private Integer bookSeqNum;

    @Schema(description = "排队序号")
    private Integer seqNum;

    @Schema(description = "VIP")
    private Integer isVip;

    @Schema(description = "5:过号 10:排队中 15:已召回 20:候诊准备 30:就诊中 40:就诊完成 ", example = "1")
    private Integer[] status;

    @Schema(description = "过号标记")
    private Boolean passed;

    @Schema(description = "预约过期标记")
    private Boolean expired;

    @Schema(description = "诊室编号")
    private Long roomId;

    @Schema(description = "诊室名称")
    private String roomName;

    @Schema(description = "诊疗床编号")
    private String bedNo;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}